package HomeWork3_10;

import java.util.Scanner;

public class HomeWork3_10_2 {
    public static void main(String[] args) {
        double a,b,c,delt;
        Scanner sc = new Scanner(System.in);
        a = sc.nextDouble();
        b = sc.nextDouble();
        c = sc.nextDouble();
        delt = b*b-4.0*a*c;
        if(delt < 0 || (a == 0 && b == 0))
            System.out.println("哈哈哈哈哈哈，没有根！！！！！");
        else if(a == 0){
            System.out.println("有一个根：" + (-c/b));
        }
        else if(delt == 0){
            System.out.println("有两个相同的根：" + (-b/(2.0*a)));
        }
        else{
            System.out.println("有两个不同的根：" + ((-b)+Math.sqrt(delt)/(2.0*a) + "和" + ((-b)-Math.sqrt(delt)/(2.0*a))));
        }
    }
}
